package com.hls.uflo.demo.conf;

import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.bstek.uflo.console.UfloServlet;

@Configuration
@EnableTransactionManagement
@ImportResource("classpath:context.xml")
public class FlowCoreConf {
	
	@Bean
    public ServletRegistrationBean<UfloServlet> servletRegistration() {
        return new ServletRegistrationBean<>(new UfloServlet(), "/uflo/*");
    }
}
